package disruptor;

import com.lmax.disruptor.EventHandler;

/**
 * Created by dongjigong on 2018/5/25.
 *
 * @Email osbornjonny@126.com
 * @Description
 */
public class ProcessingEventHandler implements EventHandler<ObjectEvent<String>> {
    @Override
    public void onEvent(ObjectEvent<String> tObjectEvent, long l, boolean b) throws Exception {
        System.out.println("-----------------" + l);
        //tObjectEvent.val=String.valueOf(l);
        System.out.println(tObjectEvent.val);
    }
}
